package com.itboye.zhujia;

import com.itboye.zhujia.uitl.XPicasso;

import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

public class MessageFragment extends Fragment {

	ImageView img;
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View messageLayout = inflater.inflate(R.layout.message_layout,
				container, false);
		return messageLayout;
	}
	
	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onActivityCreated(savedInstanceState);
		img=(ImageView) getView().findViewById(R.id.img);
		XPicasso.loadImage(getActivity(),img, "http://image.baidu.com/search/detail?ct=503316480&z=undefined&tn=baiduimagedetail&ipn=d&word=%E5%9B%BE%E7%89%87&step_word=&ie=utf-8&in=&cl=2&lm=-1&st=undefined&cs=1808529296,2001246714&os=3819464713,2631741104&simid=3480550331,229326920&pn=520&rn=1&di=38390801460&ln=1945&fr=&fmq=1472285358727_R&fm=&ic=undefined&s=undefined&se=&sme=&tab=0&width=&height=&face=undefined&is=&istype=0&ist=&jit=&bdtype=0&adpicid=0&pi=&gsm=1e0&objurl=http%3A%2F%2Fimage.tianjimedia.com%2FuploadImages%2F2013%2F228%2F9D3EW9221H45.jpg&rpstart=0&rpnum=0&adpicid=0");
	}

}
